//
//  ScoreViewController.swift
//  lottery
//
//  Created by admin on 16/2/4.
//  Copyright © 2016年 jin. All rights reserved.
//

import UIKit

class ScoreViewController: JinBaseTableViewController {
    override func viewDidLoad() {
        super.viewDidLoad()
        let group1 = SettingGroup(title: "", footer: "我是组尾")
        group1.settings.append(Setting(title: "提醒我关注比赛", titleImage: UIImage(imageLiteral: "handShake"), accessory: UISwitch()))
        let group2 = SettingGroup(title: "我是组头", footer: "")
        let lable = UILabel()
        lable.text = "00:00"
        group2.settings.append(Setting(title: "起始时间", titleImage: UIImage(imageLiteral: "handShake"), lable:lable))
        let group3 = SettingGroup()
        let lable1 = UILabel()
        lable1.text = "00:00"
        group3.settings.append(Setting(title: "起始时间", titleImage: UIImage(imageLiteral: "handShake"), lable:lable1))
        self.settings.append(group1)
        self.settings.append(group2)
        self.settings.append(group3)
    }
    override func tableView(tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
        let header = UILabel()
        header.text = self.settings[section].title
        header.font = UIFont.systemFontOfSize(20)
        header.textColor = UIColor.grayColor()
        return header
    }
}
